package com.exceptions;

/**
 * @author t-zhaoheng
 * @since 2022/3/14
 */
public enum ExceptionType {
  FILE_NOT_FOUND_ERROR(404, "文件找不到"),
  USER_NOT_EXIST_ERROR(100, "用户名不存在"),
  PASSWORD_ERROR(101, "密码错误"),
  AUTHENTICATION_FAILED(401, "认证失败");
  ;
  int code;
  String msg;

  ExceptionType(int code, String msg) {
    this.code = code;
    this.msg = msg;
  }

  public int getCode() {
    return code;
  }

  public String getMsg() {
    return msg;
  }
}
